package collections.g4;

import java.util.PriorityQueue;
import java.util.Queue;

public class QueueDemo {

	public static void main(String[] args) {
		
		Queue<Kunde> q = new PriorityQueue<Kunde>();
		q.add(new Kunde(10));
		q.add(new Kunde(4));
		q.add(new Kunde(12));
		q.add(new Kunde(19));
		q.add(new Kunde(2));
		
		while(!q.isEmpty()){
			System.out.println(q.poll().hashCode());
		}
		
	
	}
}
